package com.jk.smartelderlycare.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jk.smartelderlycare.dao.TbItemMapper;
import com.jk.smartelderlycare.dto.TbItem;
import com.jk.smartelderlycare.service.TbItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author hhk
 * @version 1.0
 * @ClassName TbItemServiceImpl
 * @program: smart-elderly-care
 * @description: TODO
 * @date 2024/11/17 19:07
 */
@Service
public class TbItemServiceImpl implements TbItemService {

    @Autowired
    private TbItemMapper tbItemMapper;
    @Override
    public List<TbItem> findTbItemList(TbItem tbItem) {
        QueryWrapper<TbItem> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("status",1);

        return tbItemMapper.selectList(queryWrapper);
    }
}
